﻿@model WebTV_Kickstarter.Gebruiker

@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Login</h2>


@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

<div class="form-horizontal">
    <div class="form-group">
        @Html.LabelFor(model => model.Email, new { @class = "control-label col-md-2" })
        <div class="col-md-10">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>
    </div>

    <div class="form-group">
        @Html.LabelFor(model => model.Wachtwoord, new { @class = "control-label col-md-2" })
        <div class="col-md-10">
            @Html.PasswordFor(model => model.Wachtwoord)
            @Html.ValidationMessageFor(model => model.Wachtwoord)
        </div>
    </div>

    <div class="form-group">
        <div class="col-md-offset-2 col-md-10">
            <input type="submit" value="Login" class="btn btn-default" />
        </div>
    </div>
    
    @{
    if (ViewBag.ErrorMessage == "Error")
    {
        @Html.Label("U heeft een verkeerd wachtwoord of email ingevuld")
    }
    }

    <p><a href="../Gebruiker/ResetPassword">Wachtwoord vergeten</a></p>
</div>
}